#!/bin/bash
echo "编译八字测算系统..."

# 创建编译目录
mkdir -p build/classes

# 编译所有Java文件
find src/main/java -name "*.java" -exec javac -d build/classes {} \;

if [ $? -eq 0 ]; then
    echo "编译成功！"
    echo "运行命令: java -cp build/classes BaziCalculator"
else
    echo "编译失败！"
    exit 1
fi